﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DPS.DataModel;

namespace DPS.Prototype.Model.Adapter
{
    public class HoldingModelAdapter
    {
        public static HoldingModels Adapter(DPSHoldingModel model)
        {
            HoldingModels holdingModel = new HoldingModels();
            holdingModel.BeginTime = (DateTime)model.BeginHoldTime;
            holdingModel.EndTime = (DateTime)model.EndHoldTime;
            holdingModel.Model = model.Model;
            holdingModel.Sku = model.Sku;
            return holdingModel;
        }
    }
}
